# 寻找两数之和是否等于 n
lst1=[1,4,5,6,7,8,9,10,11,12,13,15,18,19,20,21,29,34,54,65]
n=eval(input("请输入n"))
flag = False
d = dict()
i1 = 0
i2 = 0
for i in range(len(lst1)):
    if d.get(n - lst1[i]) == None:
        d[lst1[i]] = i
    else:
        i1 = d.get(n - lst1[i])
        i2 = i
        flag = True

if flag == False:
    print("not found")
else:
    print("{} {}".format(i1, i2))
